package com.xjw.util;

import org.kxml2.kdom.Element;
import org.kxml2.kdom.Node;

public class GenerateSoapHeader {

	
 public static   Element[] buildAuthHeader() { 	
		
		Element[] header = new Element[1]; 
		
        header[0] = new Element().createElement(CommonParam.WEBSERBICE_NAMESPACE,CommonParam.xml_authentication_el); 
        Element username = new Element().createElement("",CommonParam.xml_userID_el); 
	    username.addChild(Node.TEXT,"test");
	    Element pass = new Element().createElement("",CommonParam.xml_password_el); 
	    pass.addChild(Node.TEXT,"test");
	    Element sysid = new Element().createElement("",CommonParam.xml_systemID_el);
	    sysid.addChild(Node.TEXT,"1"); 
	  

        header[0].addChild(Node.ELEMENT, username); 
        header[0].addChild(Node.ELEMENT, pass); 
        header[0].addChild(Node.ELEMENT, sysid);
	    return header; 
	} 
	
	
	
}
